package com.bm.server.controller;

import com.bm.common.dto.PingLunDto;
import com.bm.common.vo.R;
import com.bm.server.service.intf.PingLunService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * YoungMan, may the force be with you.
 *
 * @Author: 吃个小布丁吧
 * @Date: 2022/07/23/10:50
 */
@RestController
@RequestMapping("/server/pingLun/")
public class PingLunController {
    @Resource
    private PingLunService service;
    @GetMapping("all.do")
    public R all(int aid){
        return service.queryByArticleId(aid);
    }
//    @PostMapping("save.do")
//    public R save(@RequestBody PingLunDto dto, HttpServletRequest request){
//        return service.save(dto,request.getIntHeader("bbtoken"));
//    }
}
